package com.sanbi.erp.db.dao;

import com.sanbi.erp.db.domain.StoreProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StoreProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StoreProduct record);

    int insertSelective(StoreProduct record);

    StoreProduct selectByPrimaryKey(Integer id);

    List<StoreProduct> selectByPrimaryKeyByList(Integer id);

    int updateByPrimaryKeySelective(StoreProduct record);

    // 批量修改
    int updateByPrimaryKeySelectiveList(List<StoreProduct> list);

    int updateByPrimaryKey(StoreProduct record);

    // 批量添加
    int insertSelectiveList(@Param("recordList") List<StoreProduct> recordList);
}